package org.hxyjs.service;


import org.hxyjs.dto.DTO;
import org.hxyjs.entity.News;
import org.hxyjs.page.PageInfo;

public interface NewsService {
    /**
     * 查询全部新闻
     * @return
     */
    public DTO<News> getAllNewss() throws Exception;
    /**
     * 删除新闻
     * @return
     */
    public DTO<News> deleteNewsByNno(String nno) throws Exception;
    /**
     * 修改新闻
     * @return
     */
    public DTO<News> updateNewsByNno(News news) throws Exception;
    /**
     * 增加新闻
     * @return
     */
    public DTO<News> addNews(News news) throws Exception;
    /**
     * 分页查询新闻
     * @return
     */
    public DTO<News> getNewsByPage(PageInfo pageInfo) throws Exception;
    /**
     * 分页查询新闻
     * @return
     */
    public DTO<News> selectNewsWithCarouselmap(String nno) throws Exception;

}
